<template>
  <div id="updateDialog">
    <el-dialog class="box" title="查看设备" :visible.sync="updateDialogShow" :before-close="handleClose">
      <el-form :model="assetform" :rules="rules" ref="assetform" label-width="120px" class="demo-form-inline"  >
        <el-form-item label="设备编号：" >
          <el-col :span="9">
            <el-form-item >
              设备编号
            </el-form-item>
          </el-col>
          <el-col class="line formRight1 userid" :span="5" style="text-align: right"><span class="rightx"></span>设备名称：</el-col>
          <el-col :span="9">
            <el-form-item >
              设备名称
            </el-form-item>
          </el-col>
        </el-form-item>
        <el-form-item label="通讯类型：" >
          <el-col :span="9">
            <el-form-item  >
              通讯类型
            </el-form-item>
          </el-col>
          <el-col class="line formRight1 userid" :span="5" style="text-align: right"><span class="rightx"></span>通讯地址：</el-col>
          <el-col :span="9">
            <el-form-item >
              通讯地址通讯地址
            </el-form-item>
          </el-col>
        </el-form-item>
        <el-form-item label="通讯参数：" >
          <el-col :span="9">
            <el-form-item >
              通讯参数
            </el-form-item>
          </el-col>
          <el-col class="line formRight1 userid" :span="5" style="text-align: right"><span class="rightx"></span>分类：</el-col>
          <el-col :span="9">
            <el-form-item >
              分类分类分类
            </el-form-item>
          </el-col>
        </el-form-item>
        <el-form-item label="品牌：" >
          <el-col :span="9">
            <el-form-item >
              品牌品牌品牌品牌
            </el-form-item>
          </el-col>
        </el-form-item>
      </el-form>

      <!--<div slot="footer" class="dialog-footer">-->
        <!--<span class="foorterLeft">注：<span style="color: red">*</span>为必填项</span>-->
        <!--<el-button type="primary">确定</el-button>-->
        <!--<el-button type="info" @click="handleClose" >取 消</el-button>-->
      <!--</div>-->
    </el-dialog>
  </div>
</template>

<script>
  export default {
    components: {
    },
    data() {
      return {
        assetform: {
          name: '',
          module: '',
          describe: ''
        },
        rules: {
          name: [
            { required: true, message: '请输入活动名称', trigger: 'blur' },
            { min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
          ],
          region: [
            { required: true, message: '请选择活动区域', trigger: 'change' }
          ],
          date1: [
            { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
          ]
        },
        updateDialogFalse: false,
        isIndeterminate: true
      }
    },
    created() {
      this.updateDialogShow = true
    },
    methods: {
      handleCheckAllChange(val) {
        this.isIndeterminate = false
      },
      handleCheckedCitiesChange(value) {
        const checkedCount = value.length
        this.checkAll = checkedCount === this.details.length
        this.isIndeterminate = checkedCount > 0 && checkedCount < this.details.length
      },
      // 子组件传值
      handleClose() {
        const dialogShow = this.updateDialogFalse // 所需要传的值
        this.$emit('giveFalse', dialogShow) // 传值的参数
        console.log(dialogShow)
      }
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  /*****************第一层弹窗*****************/
  .testColor{
    padding: 0;
    color: #fff;
  }
  .foorterLeft{
    width: 100px;
    height: 20px;
    font-size:14px;
    font-family:MicrosoftYaHei;
    font-weight:400;
    color:rgba(105,114,126,1);
    float: left;
  }
  /*****************第一层弹窗*****************/
  /deep/ .box > .el-dialog{
    width: 750px;
    height: 300px;
    margin-top: 30vh !important;
    border-radius: 4px;
  }
  /*****************第一层弹窗头部*****************/
  /deep/ .box > .el-dialog > .el-dialog__header{
    width: 750px;
    height: 39px;
    line-height: 43px;
    padding: 0;
    text-indent: 20px;
    font-weight: bolder;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    background-color: #e3e6ee;
  }
  /deep/ .box > .el-dialog > .el-dialog__header > .el-dialog__headerbtn{
    top: 12px;
  }
  /deep/ .box > .el-dialog > .el-dialog__header > .el-dialog__headerbtn > i{
    font-size: 18px;
    font-weight: bolder;
  }
  /*****************第一层弹窗内容*****************/
  /deep/ .box > .el-dialog > .el-dialog__body{
    padding: 0 0 0 10px ;
    min-height: 50px;
    line-height: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  /deep/ .box > .el-dialog > .el-dialog__body > .el-form > .el-form-item{
    margin-bottom: 0;
  }
  /deep/ .box > .el-dialog > .el-dialog__body > .el-form > .el-form-item > .el-form-item__label{
    color: #69727E;
    font-weight: normal;
  }
  /deep/ .box > .el-dialog > .el-dialog__body > .el-form > .el-form-item > .el-form-item__content > .el-input > .el-input__inner{
    width: 610px;
    height: 30px;
  }

</style>
